// @ts-nocheck
import * as http from '@/tools/http'

/**
 * 创建合同
 * */
export async function createContract(params: object) {
  return http.postFile('/api/business/contract', params)
}

/**
 *查询合同
 */
export async function getContractInfo(params: object) {
  return http.get('/api/business/contract', params)
}

/**
 * 账号详情
 * */
export async function getContractInfoDetail(params: object) {
  return http.get('/api/business/contract/detail', params)
}

/**
 * 密码变更
 * */
export async function modifyPassword(params: object) {
  return http.post('/api/business/contract/modifyPassword', params)
}

/**
 * 账号生效
 * */
export async function accountEffective(params: object) {
  return http.post('/api/business/contract/accountEffective', params)
}

/**
 * 账号下线
 * */
export async function accountKick(params: object) {
  return http.post('/api/business/contract/accountKick', params)
}

/**
 * 地址迁移
 * */
export async function transfer(params: object) {
  return http.post('/api/business/contract/transfer', params)
}

/**
 * 查询账号收入
 * */

export async function getIncomeDetailByContractId(params: object) {
  return http.get('/api/business/contract/income', params)
}

/**
 * 赠送时长
 * */
export async function giftDuration(params: object) {
  return http.post('/api/business/contract/giftDuration', params)
}

/**
 * 账号续费
 * */
export async function renewContract(params: object) {
  return http.post('/api/business/contract/renew', params)
}

/**
 * 用户退费
 * */
export async function refundContract(params: object) {
  return http.post('/api/business/contract/refund', params)
}
